#!/usr/bin/env python 
# -*- coding: utf-8 -*-
# @Time    : 2022/10/28 9:08
# @Author  : Junzhao
# @File    : 操作JSON文件.py
# @Software: PyCharm
import json


def read(filename: str):
    try:
        with open(filename, 'r')as f:
            return json.load(f)
    except FileNotFoundError:
        print("文件不存在")
    pass


def write(filename: str, **_):
    with open(filename, 'w')as f:
        json.dump(_, f)


